package br.com.efacta.bagarita.domain;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Representação de uma questão
 * 
 * @author felipe.rico
 * 
 */
@Document(collection = "questions")
public class Question {

    @Id
    private String id;

    private String text;

    private List<Answer> answers;

    @DBRef
    private List<Discipline> disciplines;

    private QuestionType type;

    @DBRef
    private List<Subject> subjects;

    private int year;

    @DBRef
    private Exam exam;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<Answer> getAnswers() {
        return answers;
    }

    public void setAnswers(List<Answer> answers) {
        this.answers = answers;
    }

    public List<Discipline> getDisciplines() {
        return disciplines;
    }

    public void setDisciplines(List<Discipline> disciplines) {
        this.disciplines = disciplines;
    }

    public QuestionType getType() {
        return type;
    }

    public void setType(QuestionType type) {
        this.type = type;
    }

    public List<Subject> getSubjects() {
        return subjects;
    }

    public void setSubjects(List<Subject> subjects) {
        this.subjects = subjects;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public Exam getExam() {
        return exam;
    }

    public void setExam(Exam test) {
        this.exam = test;
    }

}
